<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>文章列表--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/dist/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/style/css/public.css" media="all"/>
</head>
<body class="childrenBody">
<form class="layui-form layui-row layui-col-space10" id="submitForm">

    <div class="layui-col-md12 layui-col-xs12">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md8 layui-col-xs12">
                <div class="layui-form-item magt10">
                    <label class="layui-form-label">相册编号</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input id" name="id" th:value="${album.id}" readonly>
                    </div>
                </div>

                <div class="layui-form-item name">
                    <label class="layui-form-label">分类名称</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="name" lay-verify="required" placeholder="请输入相册名称"
                               th:value="${album.name}">
                    </div>
                </div>
                <div class="layui-form-item showFlag">
                    <label class="layui-form-label">是否公开</label>
                    <div class="layui-input-block">
                        <input type="checkbox" lay-skin="switch" name="showFlag" lay-filter="showFlag" lay-text="是|否"
                               th:attr="checked=${album.showFlag}=='Y'?true:false">
                    </div>
                </div>

                <div class="layui-form-item name">
                    <label class="layui-form-label">相册介绍</label>
                    <div class="layui-input-block">
                        <textarea type="textarea" class="layui-textarea" name="introduction" lay-verify="required"
                                  placeholder="请输入相册介绍" th:text="${album.introduction}"></textarea>
                    </div>
                </div>

                <div class="layui-form-item location">
                    <label class="layui-form-label">所属定位</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="location" lay-verify="required" placeholder="请选择定位"
                               th:value="${album.location}">
                    </div>
                </div>

            </div>
        </div>
    </div>

    <div class="layui-col-md12 layui-col-xs12 layui-center">
        <a class="layui-btn layui-btn-sm" lay-filter="updateAlbum" lay-submit><i class="layui-icon">&#xe605;</i>确定</a>
        <a class="layui-btn layui-btn-primary layui-btn-sm close"><i class="layui-icon">&#x1006;</i>关闭</a>
    </div>
</form>
<script type="text/javascript" src="/dist/layui/layui.js"></script>
<script type="text/javascript" src="/manage/album/album.js"></script>
</body>
</html>